package com.hice.demo.java.design.pattern.strategy;

/**
 * 策略模式-减法实现类
 *
 * Created by echal on 2016/2/2.
 */
public class Minus extends AbstractCalculator implements ICalculator{
    @Override
    public int calculate(String exp) {
        int arrayInt[] = split(exp,"\\-");
        return arrayInt[0]-arrayInt[1];
    }
}
